﻿using Project.Ycm20250401.Service._20250407;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Ycm20250401.Service._20250409
{
    /// <summary>
    /// 
    /// </summary>
    public class EmailNotificationObserver : IOrderObserver
    {
        public void Update(Order20250409 order)
        {
            Console.WriteLine($"Sending confirmation email to {order.CustomerEmail} for Order ID: {order.OrderId}");
            // 实际逻辑：调用邮件服务发送邮件
        }
    }
}
